Skip to main content

All Set Names

This script returns all the names for Set.

Returns: [String] - A list of all the set names.

import UFC_NFT from 0xUFCNFTADDRESS

pub fun main(): [String] {
let series = UFC_NFT.getAllSets()
let seriesNames: [String] = []
for element in series {
seriesNames.append(element.getMetadata()["name"]!)
}
return seriesNames
}